package net.xisberto.bustime;

import android.app.Activity;
import android.os.Bundle;
import android.util.AndroidRuntimeException;
import android.view.Window;
import android.widget.TextView;

public class CustomActivity extends Activity {
	protected TextView title;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		try {
			requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
			setContentView(R.layout.view_main);
	        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.titlebar);
	        title = (TextView) findViewById(R.id.text_title);
	        //icon  = (ImageView) findViewById(R.id.icon);
		} catch (AndroidRuntimeException e) {
			setContentView(R.layout.view_main);
		}
 
	}

}
